/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-03 09:05:53
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-03 09:12:48
 * @FilePath: \盐师22Git仓库\day06\Phone.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day06;

public class Phone {
    //成员属性
    //品牌 brand
    public String brand;
    //价格price
    public double price;
    //成员方法
    //打电话 call
    public void call(){
        System.out.println("给指定成员打电话");
    }
    //给指定成员发送指定短信内容 sendMsg
    //(String nsme,String text)
    public void sendMsg(String name,String text){
        System.out.println("给" + name + "发短信" + text);
    }
    //输出手机属性的功能
    public void show(){
        System.out.println("品牌：" + brand + "价格"+ price);
    }
}
